import axios from '@/http/axios'

/*
 * 菜单管理模块
 */

// 取得树状菜单
export const getTree = () => {
  return axios({
    url: '/menu/getTree',
    method: 'get'
  })
}
// 保存
export const save = (data) => {
  return axios({
    url: '/menu/save',
    method: 'post',
    data
  })
}
// 移动菜单
export const move = (data) => {
  return axios({
    url: '/menu/move',
    method: 'post',
    data
  })
}
